﻿using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace XamlInspector.Presentation.Controls
{
    public class TabStrip : ListBox
    {
        protected override DependencyObject GetContainerForItemOverride()
        {
            return new ListBoxItem();
        }

        protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
        {
            ((ListBoxItem) element).DataContext = item;
        }

        protected override bool IsItemItsOwnContainerOverride(object item)
        {
            return false;
        }
    }
}
